icontheme: correctly fallback to symbolic icons
authorCosimo Cecchi <cosimoc@gnome.org>
Tue, 13 Aug 2013 13:41:08 +0000 (15:41 +0200)
committerCosimo Cecchi <cosimoc@gnome.org>
Tue, 13 Aug 2013 15:22:47 +0000 (17:22 +0200)
commitb52844031f863f669b121098b43c1064191f3a54
tree520e5681adb969b109435b42e557d08748dfa983
parent8818d8a19b1da6a0d22ecebb4008b44c8465bf19
icontheme: correctly fallback to symbolic icons

When an icon is requested as symbolic, our generic fallback algorithm
uses fullcolor icons when the specified icon name is not found, treating
the "-symbolic" suffix as another component of the icon name.

Change the algorithm to check beforehand if the icon is symbolic, remove
the suffix if so, and re-add it at the end for all the generated icon
names.

https://bugzilla.gnome.org/show_bug.cgi?id=680926
gtk/gtkicontheme.c